Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications


Generating Web page headers

The functions listed in Table 3–10 output Web page header information. For output-http-header to have any effect, you must execute it before output-content-type. Usually this is in the output-header procedure of a Web object.

Table 3–10: Web Page header API functions 
Function
Return type
Description
output-content-type 
LOGICAL 
Sets and outputs the MIME Content-Type header followed by a blank line. If the header is already output, no action is taken. If the specified content type is blank (“ “), no Content-Type header is output, but other headers such as Cookies are output followed by a blank line. Returns TRUE if Content-Type header is output; otherwise, FALSE.
output-http-header 
CHARACTER 
Outputs the specified HTTP header and associated value, followed by a carriage return (CR) and linefeed (LF). If the header is blank, CR and LF are still output.

See install-path/src/web/method/cgiutils.i for definitions of these functions.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095